package com.oop.bookstore;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 25228
 * Date: 2024-10-08
 * Time: 10:38
 */
public class Book {
    String title;
    double price;

    public Book(String title,double price){
       this.title=title;
       this.price=price;
       this.display();
    }

    void setPrice(int price){
        this.price=price;
    }

    void setTitle(String title){
        this.title=title;
    }

    void display(){
        System.out.println(title);
        System.out.println(price);
    }
}
